package ru.st.selenium.dessignPatterns;

import static org.junit.Assert.assertTrue;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class BestPractises3 {
	WebDriver selenium;
	
	@Before
	public void setUp() {
		selenium = new FirefoxDriver();
	}
	
	@After
	public void teardown() {
		selenium.quit();
	}
	
	@Test
	public void ShouldLoadTheHomePageAndThenCheckButtonOnChapter2() {
		Chapter2 cht = new Chapter2(selenium).get();
		cht.isButtonPresent("but1");
		
	}
}
